package com.rd.student.jiaji.class4.suyan.zrrd.day07;

public class PeopleText03 {
    public static void main(String[] args) {
        People p=new People();
        //对于成员变量设置值，应该调用set方法
        p.setName("张三");
        //访问成员变量变量值
        System.out.println(p.getName());
        System.out.println(p.getAge());
        p.setAge(30);
        System.out.println(p.getAge());
    }
}
